from enum import Enum
from pydantic import BaseModel


class IDModelMixin(BaseModel):
    id: int


class Status(str, Enum):
    active = "active"
    inactive = "inactive"


class IsDefault(str, Enum):
    false = 0
    true = 1



class Create(BaseModel):
    name: str
    tel:int
    address: str
    detail: str
    is_default: IsDefault



class Update(BaseModel):
    name: str
    tel: int
    address: str
    detail: str
    is_default: IsDefault



